<template>
  <div class="">
    <!-- 自定义导航栏 -->
    <gh-navbar id="navbar" :showback="true" title="我的关注" />
    <div class="none" v-show="condition">
      <image class="none-img" :src="imgBaseUrl + 'none.png'" mode="widthFix" />
    </div>
    <div class="myflow">
      <div class="my-flow-item" v-for="(item, index) in lawer" :key="index">
        <navigator :url="'/pages/lawer/detail?id='+ item.id">
          <gh-guanzhu-card :item="item" />
        </navigator>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      lawer: [],
      imgBaseUrl: this.$store.state.imgBaseUrl,
      condition: false
    };
  },
  async created() {
    let that = this;
    let res = await this.$gh
      .request("member.info", {
        data: {
          op: "getFollowList"
        }
      })
      .catch(err => {
        if (err.code == 41009) {
          // that.login(err.message);
          this.$store.dispatch("login", err.message);
        }
        if(err.code == 201){
          this.condition = true
        }
      });
    this.$print(res);
    this.lawer = res.data.list
  }
};
</script>
<style lang='less' scoped>
@import url("../../common/util.less");
.myflow {
  padding: 25rpx;
  .my-flow-item {
    margin-bottom: 25rpx;
  }
}
/deep/.swiper-item {
  margin-right: 0 !important;
}
.none {
  font-size: 30rpx;
  color: @font-color;
  text-align: center;
  .none-img{
    width: 50%;
    margin-top: 100rpx;
  }
}
</style>